set(NAME ax_base_c)


SET(LIB_SRC
ax_time.c
ax_list.c
ax_printf.c
ax_thread.c
ax_vector.c
ax_string.c
ax_dict.c
ax_queue.c
murmur.c
ax_thread_fifo.c
ax_fifo.c
ax_stack.c
ax_hashtable.c
ax_filesystem.c
ax_set.c
ax_fd.c
)

if(UNIX)
    list(APPEND LIB_SRC  ax_select.c ax_epoll.c ax_timer.c ax_fork.c)
endif()

include_directories( ${CMAKE_SOURCE_DIR}/include/ax_base_c ${CMAKE_SOURCE_DIR}/include)

if(ENABLE_STATIC_LIBS)
	add_library(${NAME} STATIC ${LIB_SRC})
else()
    add_library(${NAME} SHARED ${LIB_SRC})
endif()
